package way.learning.zz.event;

import way.learning.zz.DirectoryPoller;
import way.learning.zz.source.PolledDirectory;

abstract class EventExposingPolledDirectory extends EventExposingDirectoryPoller {

    //轮询目录
    private final PolledDirectory directory;

    EventExposingPolledDirectory(DirectoryPoller directoryPoller, PolledDirectory directory) {
        super(directoryPoller);
        this.directory = directory;
    }

    /**
     * 返回事件产生的PolledDirectory
     */
    public PolledDirectory getPolledDirectory() {
        return directory;
    }

}
